<template>
<h2>父组件接收的数据是：{{parMsg}}</h2>
<pre>{{ parMsg }}</pre>
<p>{{parMsg.text}}</p>
<div><emit-child @updateMsg="upMsg"></emit-child></div>

</template>
<script setup>
import { ref, Text } from 'vue';
import EmitChild from './EmitChild.vue';
let parMsg =ref("");
const upMsg=(msg)=>{
    parMsg.value = msg;

};
</script>
<style scoped>
p{
    color: brown;
}
:dee(.dee){
background-color: #193cff ;
}
</style>